package com.example.demo.service.impl;

import com.example.demo.entity.Point;
import com.example.demo.mapper.PointMapper;
import com.example.demo.service.PointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: lu
 * @Date: 2024-08-29-18:39
 * @Description:
 */
@Service
public class PointServiceImpl implements PointService {

    @Autowired
    PointMapper pointMapper;

    @Override
    public List<Point> findPoint(Point point) {
        List<Point> points = pointMapper.latestPoint(point);
        return points;
    }
}
